package com.xuanmiao.smsback.dao.mapper;

import com.xuanmiao.smsback.dao.model.PriceHistoryInfoDO;
import com.xuanmiao.smsback.dao.model.UserInfoDO;
import com.xuanmiao.smsback.domain.qo.BusinessPriceInfoQO;
import com.xuanmiao.smsback.dao.model.BusinessPriceInfoDO;

import com.xuanmiao.smsback.domain.qo.PriceHistoryInfoQO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessPriceInfoMapper {


    Integer count(BusinessPriceInfoQO businessPriceInfoQO);

    List<BusinessPriceInfoDO> queryBusinessPriceInfo(BusinessPriceInfoQO businessPriceInfoQO);

    BusinessPriceInfoDO getById(@Param("id") Integer id);

    int update(BusinessPriceInfoDO convert);

    void addHistory(BusinessPriceInfoDO convert);

    List<PriceHistoryInfoDO> getHistoryById(PriceHistoryInfoQO priceHistoryInfoQO);

    Integer countHistory(PriceHistoryInfoQO priceHistoryInfoQO);
    
    int updateCreditLimit(BusinessPriceInfoDO convert);


    void add(UserInfoDO userInfoDO);
}
